<?php
include_once 'config.php';
include_once  'addstock_functions.php';
$username="tungt";
$stock = $_POST['stock'];
$type = $_POST['type'];
$value = intval(str_replace(',',"",$_POST['value']));
$quality = intval(str_replace(',',"",$_POST['quality']));
$transactionDate = $_POST['transactionDate'];
save($DB_NAME,$username,$stock,$type,$value,$quality,$transactionDate);
header("location:addstock.php");
?>